<?php
namespace Home\Model;
use Think\Model;
class UserModel extends \Think\Model {
    public function findOne($where) {
        return $this->where($where)->find();
    }
    public function changePwd($where, $data) {
        return $this->where($where)->data($data)->save();
    }
    public function addUser($data) {
        return $this->add($data);
    }
    public function delUser($where) {
        return $this->where($where)->delete();
    }
}